#ifndef _AT16_USART0_H_
#define _AT16_USART0_H_

#define FOSC 8000000// Clock Speed
#define BAUD 9600
#define MYUBRR FOSC/16/BAUD-1

void AT16_USART0_init(void);
void AT16_USART0_reg(void (*sendDone)(void), void (*receive)(uint8_t));
error_t AT16_USART0_send(uint8_t data);

#define DRIVER_USART0_INIT() AT16_USART0_init()
#define DRIVER_USART0_REG(x,y) AT16_USART0_reg(x,y)
#define DRIVER_USART0_SEND(x) AT16_USART0_send(x)

#endif // __AT16_USART0_H__
